<?php
include "user_class.php";
if (!user::status()) {
	Header( "HTTP/1.1 301 Moved Permanently" );
	Header('Location: login.php');	
} else {
	echo 'logged in<br><a href="login.php?action=logout">logout</a>';
}
?>